package org.chench.test.helloserviceclient.feign;

import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient // 发现服务
@EnableFeignClients // 使用声明式服务消费组件Spring Cloud Feign
public class HelloServiceClientFeignApplication {

    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

	public static void main(String[] args) {
		SpringApplication.run(HelloServiceClientFeignApplication.class, args);
	}
}
